<?php
/**
 * Notes:
 * User: wudg <544038230@qq.com>
 * Date: 2025/7/4 11:32
 */

namespace App\Dao\Users;


use App\Dao\BaseDao;
use App\Model\Users\UsersMiniAuth;

class UsersMiniAuthDao extends BaseDao
{


    public function getCode(string $code)
    {
        return UsersMiniAuth::with('user')->where('unionid','=',$code)->first();
    }


    public function getIdByPk(int $id)
    {
        return UsersMiniAuth::query()->where('id','=',$id)->first();
    }
}